package Pieces;

public class Pipe extends Piece {
    public static int PROBABILITY = 10; //percent chance of this piece being selected

	private BlockType[][] blockArrayVert = {
		{BlockType.NONE, BlockType.ORANGE, BlockType.NONE, BlockType.NONE},
		{BlockType.NONE, BlockType.ORANGE, BlockType.NONE, BlockType.NONE},
		{BlockType.NONE, BlockType.ORANGE, BlockType.NONE, BlockType.NONE},
		{BlockType.NONE, BlockType.ORANGE, BlockType.NONE, BlockType.NONE}
	};
	
	private BlockType[][] blockArrayHorizonal = {
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE},
			{BlockType.ORANGE, BlockType.ORANGE, BlockType.ORANGE, BlockType.ORANGE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
	
	public Pipe() {
		super();
	}

	@Override
	public BlockType[][] getCurrentBlockArray() {
		switch(currentState) {
			case DEFAULT:
			case SECOND:
				return blockArrayHorizonal;
			default:
				return blockArrayVert;
		}
	}
}
